package com.jokey.vue.controller;

import com.jokey.vue.model.RespBean;
import com.jokey.vue.service.MenuService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author JokeyFeng
 * @date: 2021/11/27
 * @project: vuehr
 * @package: com.jokey.vue.controller
 * @comment:
 */
@RestController
@RequestMapping("/config")
public class ConfigController {
	
	@Resource
	private MenuService menuService;
	
	@GetMapping("/sysMenu")
	public RespBean sysMenu() {
		return RespBean.ok(menuService.getMenusByHrId());
	}
	
}
